package com.mszlu.blog.dao.pojo;

import lombok.Data;

@Data
public class Article {
    public static final int ARTICLE_TOP = 1;
    public static final int ARTICLE_COMMON = 0;
    private Long id;
    private String title;
    private String summary;
    private int commentCounts;
    private int viewCounts;

    private Long authorId; // 作者ID
    private Long bodyId; // 内容ID
    private Long categoryId; // 类别ID
    private int weight = ARTICLE_COMMON; // 置顶
    private Long createDate; // 创建时间
}
